package top.config;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class BeanPostProcessorImpl implements BeanPostProcessor {

    @Override
    public Object postProcessBeforeInitialization(Object o, String s) throws BeansException {
        System.out.println("【" + o.getClass().getSimpleName() + "】对象 " + s + "开始实例化了");
        return o;
    }

    @Override
    public Object postProcessAfterInitialization(Object o, String s) throws BeansException {
        System.out.println("【" + o.getClass().getSimpleName() + "】对象 " + s + "实例化完成");
        return o;
    }
}
